//
//  ViewController.m
//  podtest
//
//  Created by flynn on 2023/10/7.
// 0.1.11
//

#import "ZLViewC.h"

@interface ZLViewC ()

@end

@implementation ZLViewC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIButton* btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.frame = CGRectMake(10, 10, 100, 100);
    btn.backgroundColor = UIColor.blueColor;
    [self.view addSubview:btn];
    [btn addTarget:self action:@selector(onClick:) forControlEvents:UIControlEventTouchUpInside];
//    ZLViewC* zlvc = [ZLViewC new];
//    [self presentViewController:zlvc animated:YES completion:^{
//            
//    }];
}
- (void)onClick:(id)sender
{
    UIAlertController* alver = [UIAlertController alertControllerWithTitle:@"title" message:@"hello alert from pod lib ZLFastUI" preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction* acti = [UIAlertAction actionWithTitle:@"close" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
        [alver dismissModalViewControllerAnimated:YES];
    }];
    [alver addAction:acti];
    [self presentViewController:alver animated:YES completion:^{
            
    }];
}

@end
